home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / environment_test.tg < prev    next >
Encoding:
Text File  |  2001-10-20  |  686 b   |  32 lines

  1. ## environment_test    
  2. # Use environment variables for performing string concatination and storage.
  3. {
  4.     -name environment_test
  5.     -start    
  6.     -stop    
  7.     -action -print
  8.     -action -set foo=
  9.     -action -print foo='%foo%' (should be null)
  10.     -action -set foo="Hello World"
  11.     -action -print foo='%foo%' (should be 'Hello World')
  12.     -action -set foo=
  13.     -action -print foo='%foo%' (should be null again)
  14.     # now sleep to give the human time to read the screen.
  15.     -action -sleep 10000
  16. }
  17.  
  18. # build a big string
  19. {
  20.     -start
  21.     -action -set foo=blat%foo%
  22.     -action -print %foo%
  23.     -action -inc 0 0 0 1
  24. }
  25.  
  26. # reset the string every 15 minutes
  27. {
  28.     -start    
  29.     -action -set foo=
  30.     -action -inc 0 0 15 0
  31. }
  32.